<extend name="_Layout/main"/>
<block name="style">

</block>
<block name="main">
    <div class="builder-container builder-form-container">
        <div class="row">
            <div class="col-xs-12">
                <div class="table-responsive">
                    <h3>{$listname}</h3>
                    <a style="margin-bottom: 10px;"   href="{:U('Admin/User/benjinlx')}&select=1" class="btn btn-success">全部</a>
                    <div class="col-xs-12 col-sm-3" style="float:right;">
                        <div class="input-group search-form">
                            <form class="input-group search-form" method="post" action="{:U('Admin/User/benjinlx')}">
                                <input type="text" name="keyword" class="search-input form-control" value="" placeholder="用户名/订单号/金额/会员id">
                                <span class="input-group-btn"><button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button></span>
                            </form>
                        </div>
                    </div>
                    <table class="table table-condensed">
                        <thead>
                            <tr class="success">
                                <th>序号</th>
                                <th>会员名称</th>
                                <th>订单号</th>
                                <th>付款金额</th>
                                <th>应发利息</th>
                                <th>实发利息</th>
                                <th>创建时间</th>
                                <th>预计发放时间</th>
                                <th>交易状态</th>
                            </tr>
                        </thead>
                        <tbody>
                        <volist name="data_list" id="sf">
                                <tr>
                                    <th scope="row">{$i}</th>
                                    <td>{$sf.username}</td>
                                    <td>{$sf.dk_sf_jydh}</td>
                                    <td>{$sf.dk_money_total}</td>
                                    <td>{$sf.meiri_yingfa}</td>
                                    <td>{$sf.lixi_money}</td>
                                    <td>{$sf.lixi_time}</td>
                                    <td>{$sf.yuji_time}</td>
                                    <td><if condition="$sf.sf_jy_status eq 0">等待打款<elseif condition="$sf.sf_jy_status eq 1"/>已打款<elseif condition="$sf.sf_jy_status eq 2"/>完成交易<elseif condition="$sf.sf_jy_status eq 3"/>交易纠纷<elseif condition="$sf.sf_jy_status eq 4"/>等待处理<elseif condition="$sf.sf_jy_status eq 8"/>抢单状态<else />订单超时</if></td>
                                  <!--  <td><a href="{:U('Admin/User/dklisttwo')}&type={$typenum}&dh={$sf.lbw_order_pipei}" class="btn btn-danger">查看</a></td> -->
                                </tr>
                        </volist>
                        <tr>
                                <td style="color:#c9302c;">总计交易额:</td>
                                <td style="color:#c9302c;">{$moneytotal}元</td>
                                <td style="color:#c9302c;"></td>
                                <td style="color:#c9302c;"></td>
                                <td style="color:#c9302c;">利息总金额:</td>
                                <td style="color:#c9302c;">{$moneyypp}元</td>
                                <td style="color:#c9302c;">利息订单数量:</td>
                                <td style="color:#c9302c;">{$total}单</td>
                        </tr>
                        </tbody>
                    </table>
                    <ul class="pagination">{$page}</ul>
                </div>
            </div>
        </div>
    </div>
</block>